package com.hh.releasenode.exception;

/**
 * @ClassName RNException
 * @Description TODO
 * @Author KunxianLi
 * Date 2020/6/2 14:03
 * Version 1.0
 **/
public class RNException extends RuntimeException{

    private static final long serialVersionUID = 1L;

    private String msg;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    private String code = "500";

    public RNException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public RNException(String msg, String code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public RNException(Throwable cause, String msg, String code) {
        super(msg, cause);
        this.code = code;
    }


}
